package app;

import edu.tum.cs.i1.pse.BubbleSort;
import edu.tum.cs.i1.pse.MergeSort;
import edu.tum.cs.i1.pse.QuickSort;
import edu.tum.cs.i1.pse.SortStrategy;

public class ArraySorter {
	Policy policy;
	SortStrategy sortStrategy;
	
	
	public ArraySorter(){		
	}
	
	public void setSortStrategy(SortStrategy sortStrategy){
		this.sortStrategy = sortStrategy;
	}
	
	public String sort(int a[]){
		sortStrategy.performSort(a);
		return sortStrategy.getClass().getName();
	}
			
	
}
